package com.beimi.game.module;

public class GameTurnModule {
	private int turn;

	private int count;

	public GameTurnModule() {
		count = 4;
	}

	public int incrTurn() {
		++turn;
		turn %= count;
		return turn;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getCurrentTurn() {
		if (count == 0) {
			return 1;
		}

		return turn % count;
	}

	public void setNextTurn(int nextSeat) {
		turn = nextSeat;
	}

}
